package com.yami.shop.api.utils;

public enum ResultCodeEnum {
    //请求成功
    SUCCESS(200,"successful"),
    //重定向
    REDIRECT(301,"redirect"),
    //资源未找到
    NOT_FOUND(404,"not found"),
    //服务器错误
    SERVER_ERROR(500,"server error"),
    //电话号码校验失败
    CHECK_FAIL(502,"电话号码校验失败"),


    ;
    //服务器错误
    /**
     * 相应状态码
     * */
    private Integer resultCode;
    /**
     * 相应信息
     * */
    private String resultMsg;

    ResultCodeEnum(Integer resultCode,String msg){
        this.resultCode = resultCode;
        this.resultMsg = msg;
    }

    public Integer getResultCode() {
        return resultCode;
    }

    public void setResultCode(Integer resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultMsg() {
        return resultMsg;
    }

    public void setResultMsg(String resultMsg) {
        this.resultMsg = resultMsg;
    }
}
